package com.knowledgeqa.system.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * 问题实体类
 */
public class Question implements Serializable {
    private static final long serialVersionUID = 1L;

    private Long id;            // 问题ID
    private Long userId;        // 发布用户ID
    private String title;       // 标题
    private String content;     // 内容
    private Integer rewardAmount; // 悬赏金额
    private Integer status;     // 状态：0待解决，1已解决，2已关闭
    private Integer viewCount;  // 浏览量
    private Integer answerCount; // 回答数
    private Date createTime;    // 创建时间
    private Date updateTime;    // 更新时间

    // getter和setter方法
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getRewardAmount() {
        return rewardAmount;
    }

    public void setRewardAmount(Integer rewardAmount) {
        this.rewardAmount = rewardAmount;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getViewCount() {
        return viewCount;
    }

    public void setViewCount(Integer viewCount) {
        this.viewCount = viewCount;
    }

    public Integer getAnswerCount() {
        return answerCount;
    }

    public void setAnswerCount(Integer answerCount) {
        this.answerCount = answerCount;
    }
}